package lab01;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/8.
 */
public class Test13 {
    public static void main(String[] args) {
        int num;
        int unit;
        int ten;
        int hunderd;
        for (num = 100; num <= 999; num++) {
            unit = num % 10;
            ten = num / 10 % 10;
            hunderd = num / 100 % 10;
            if (num == unit * unit * unit + ten * ten * ten + hunderd * hunderd * hunderd) {
                System.out.println(num + "是一个水仙花数");
            }

        }
    }
}
